<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户登录</title>
<style>
form{
            width: 300px;   
            height: 130px;  
            margin: 50px auto;
            border:  1px solid #000;
            border-radius: 5px;
            padding: 20px;
            font-size: 13px;
            background-color: pink;
    }
   h2{
            font-size: 16px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 30px; 
      }
     p{
           text-align: center;
     }
</style>
<script type="text/javascript">
	function add(){
		window.open("register.jsp","_self");
	}
</script>
</head>
<body>
   <form action="LoginClServlet"   method="post">
   <h2>欢迎登录!</h2>
                    用户名:<input type="text" name="username"><br/>
                    密&nbsp;&nbsp;&nbsp;码:<input type="password" name="password"><br/>
      <p><input type="submit" value="登录" >&nbsp;&nbsp;&nbsp;<input type="reset" value="取消" >
             &nbsp;&nbsp;&nbsp;<input type="button" value="注册"  onclick="add()"><br/></p>
      </form>
      
      
</body>
</html>